﻿<%@ Page Title="" Language="C#" MasterPageFile="~/One-Column.master" AutoEventWireup="true"
    CodeBehind="DangKy.aspx.cs" Inherits="BookStore.DangKy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Đăng ký tài khoản</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BreadcrumbsContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainColumnContent" runat="server">
    <div class="account-create">
        <div class="page-title">
            <h1>
                Create an Account
            </h1>
        </div>
        <form action="#" method="post" id="form-validate">
        <div class="fieldset">
            <input type="hidden" name="success_url" value="" />
            <input type="hidden" name="error_url" value="" />
            <h2 class="legend">
                Personal Information
            </h2>
            <ul class="form-list">
                <li class="fields">
                    <div class="customer-name">
                        <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" ContinueDestinationPageUrl="~/DangNhap.aspx"
                            DuplicateUserNameErrorMessage="Username is invalid. Please enter a different user name."
                            InvalidEmailErrorMessage="Please enter a valid e-mail address (ex: hopthuspam@gmail.com)."
                            TextBoxStyle-CssClass="input-text" LoginCreatedUser="False" 
                            oncreateduser="CreateUserWizard1_CreatedUser">
                            <CreateUserButtonStyle CssClass="button" />
                            <TextBoxStyle CssClass="input-text"></TextBoxStyle>
                            <TitleTextStyle CssClass="registry-title" />
                            <WizardSteps>
                                <asp:CreateUserWizardStep runat="server" >
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td align="center" class="registry-title" colspan="2">
                                                    Sign Up for Your New Account</td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" CssClass="input-text"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                        ToolTip="User Name is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" CssClass="input-text" 
                                                        TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                                        ToolTip="Password is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                        AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="input-text" 
                                                        TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                                        ControlToValidate="ConfirmPassword" 
                                                        ErrorMessage="Confirm Password is required." 
                                                        ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Email" runat="server" CssClass="input-text"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                        ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                                        ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security Question:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Question" runat="server" CssClass="input-text"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                                        ControlToValidate="Question" ErrorMessage="Security question is required." 
                                                        ToolTip="Security question is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security Answer:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Answer" runat="server" CssClass="input-text"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                                        ControlToValidate="Answer" ErrorMessage="Security answer is required." 
                                                        ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="FullNameLabel" runat="server" AssociatedControlID="FullName">Full Name:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="FullName" runat="server" CssClass="input-text"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="FullNameRequired" runat="server" 
                                                        ControlToValidate="FullName" ErrorMessage="Full Name is required." 
                                                        ToolTip="Full Name is required." ValidationGroup="CreateUserWizard1" CssClass="required">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="PhoneNumberLabel" runat="server" AssociatedControlID="PhoneNumber">Phone Number:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="PhoneNumber" runat="server" CssClass="input-text"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="AddressLabel" runat="server" AssociatedControlID="Address">Address:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Address" runat="server" CssClass="input-text" Rows="3" 
                                                        TextMode="MultiLine"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                        ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                        Display="Dynamic" 
                                                        ErrorMessage="The Password and Confirmation Password must match." 
                                                        ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2" style="color:Red;">
                                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:CreateUserWizardStep>
                                <asp:CompleteWizardStep runat="server">
                                    <ContentTemplate>
                                    <br />
                                        <table>
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <strong style="font-size: 15px;">Completed,</strong>
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 13px;">
                                                    Your account has been successfully created.
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" colspan="2">
                                                    <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                                                        Text="Continue" ValidationGroup="CreateUserWizard1" CssClass="button" />
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:CompleteWizardStep>
                            </WizardSteps>
                        </asp:CreateUserWizard>
                    </div>
                </li>
                <li>&nbsp;</li>
            </ul>
        </div>
        <div class="buttons-set">
            <p class="required">
                * Required Fields
            </p>
            <p class="back-link">
                <a href="./DangNhap.aspx" class="back-link"><small>&#171;</small> Back</a>
            </p>
            <button type="submit" title="Submit" class="button">
            </button>
        </div>
        </form>
    </div>
</asp:Content>
